Optimal. Leaf size=35 \[ \frac {1}{4} x^2 \sqrt {-2+x^4}-\frac {1}{2} \tanh ^{-1}\left (\frac {x^2}{\sqrt {-2+x^4}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {281, 201, 223,
212} \begin {gather*} \frac {1}{4} x^2 \sqrt {x^4-2}-\frac {1}{2} \tanh ^{-1}\left (\frac {x^2}{\sqrt {x^4-2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 201
Rule 212
Rule 223
Rule 281
Rubi steps
\begin {align*} \int x \sqrt {-2+x^4} \, dx &=\frac {1}{2} \text {Subst}\left (\int \sqrt {-2+x^2} \, dx,x,x^2\right )\\ &=\frac {1}{4} x^2 \sqrt {-2+x^4}-\frac {1}{2} \text {Subst}\left (\int \frac {1}{\sqrt {-2+x^2}} \, dx,x,x^2\right )\\ &=\frac {1}{4} x^2 \sqrt {-2+x^4}-\frac {1}{2} \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x^2}{\sqrt {-2+x^4}}\right )\\ &=\frac {1}{4} x^2 \sqrt {-2+x^4}-\frac {1}{2} \tanh ^{-1}\left (\frac {x^2}{\sqrt {-2+x^4}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 35, normalized size = 1.00 \begin {gather*} \frac {1}{4} x^2 \sqrt {-2+x^4}-\frac {1}{2} \tanh ^{-1}\left (\frac {\sqrt {-2+x^4}}{x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.17, size = 28, normalized size = 0.80
method | result | size |
default | \(\frac {x^{2} \sqrt {x^{4}-2}}{4}-\frac {\ln \left (x^{2}+\sqrt {x^{4}-2}\right )}{2}\) | \(28\) |
trager | \(\frac {x^{2} \sqrt {x^{4}-2}}{4}-\frac {\ln \left (x^{2}+\sqrt {x^{4}-2}\right )}{2}\) | \(28\) |
risch | \(\frac {x^{2} \sqrt {x^{4}-2}}{4}-\frac {\ln \left (x^{2}+\sqrt {x^{4}-2}\right )}{2}\) | \(28\) |
elliptic | \(\frac {x^{2} \sqrt {x^{4}-2}}{4}-\frac {\ln \left (x^{2}+\sqrt {x^{4}-2}\right )}{2}\) | \(28\) |
meijerg | \(\frac {i \sqrt {\mathrm {signum}\left (-1+\frac {x^{4}}{2}\right )}\, \left (-i \sqrt {\pi }\, x^{2} \sqrt {2}\, \sqrt {-\frac {x^{4}}{2}+1}-2 i \sqrt {\pi }\, \arcsin \left (\frac {x^{2} \sqrt {2}}{2}\right )\right )}{4 \sqrt {\pi }\, \sqrt {-\mathrm {signum}\left (-1+\frac {x^{4}}{2}\right )}}\) | \(66\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 58 vs.
\(2 (27) = 54\).
time = 0.30, size = 58, normalized size = 1.66 \begin {gather*} -\frac {\sqrt {x^{4} - 2}}{2 \, x^{2} {\left (\frac {x^{4} - 2}{x^{4}} - 1\right )}} - \frac {1}{4} \, \log \left (\frac {\sqrt {x^{4} - 2}}{x^{2}} + 1\right ) + \frac {1}{4} \, \log \left (\frac {\sqrt {x^{4} - 2}}{x^{2}} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 29, normalized size = 0.83 \begin {gather*} \frac {1}{4} \, \sqrt {x^{4} - 2} x^{2} + \frac {1}{2} \, \log \left (-x^{2} + \sqrt {x^{4} - 2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.74, size = 88, normalized size = 2.51 \begin {gather*} \begin {cases} \frac {x^{6}}{4 \sqrt {x^{4} - 2}} - \frac {x^{2}}{2 \sqrt {x^{4} - 2}} - \frac {\operatorname {acosh}{\left (\frac {\sqrt {2} x^{2}}{2} \right )}}{2} & \text {for}\: \left |{x^{4}}\right | > 2 \\- \frac {i x^{6}}{4 \sqrt {2 - x^{4}}} + \frac {i x^{2}}{2 \sqrt {2 - x^{4}}} + \frac {i \operatorname {asin}{\left (\frac {\sqrt {2} x^{2}}{2} \right )}}{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.19, size = 29, normalized size = 0.83 \begin {gather*} \frac {1}{4} \, \sqrt {x^{4} - 2} x^{2} + \frac {1}{2} \, \log \left (x^{2} - \sqrt {x^{4} - 2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int x\,\sqrt {x^4-2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________